package main

import "fmt"

func main() {
	var m = make(map[string][]int)
	m["a"] = []int{1}

	if list, ok := m["a"]; ok {
		list = append(list, 2)
		list = append(list, 3)
		m["a"] = list
	}

	if list, ok := m["a"]; ok { // 相当于list=m["a"]，浅拷贝
		list = append(list, 4)
		list[0] = 11

	}
	fmt.Println(m) // map[a:[11 2 3]]
}

// 参考slice5.go
